package cn.znzz.cjm.pet.service;


import cn.znzz.cjm.basic.service.IBaseService;
import cn.znzz.cjm.basic.util.PageList;
import cn.znzz.cjm.pet.domain.Pet;
import cn.znzz.cjm.pet.domain.SearchMasterMsg;
import cn.znzz.cjm.pet.query.SearchMasterMsgQuery;
import cn.znzz.cjm.user.domain.Logininfo;

public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {

    //寻主消息发布
    void publish(SearchMasterMsg searchMasterMsg, Logininfo logininfo);
    //待处理
    PageList<SearchMasterMsg> pending(SearchMasterMsgQuery query, Logininfo currentLogin);
    //已处理
    PageList<SearchMasterMsg> processed(SearchMasterMsgQuery query, Logininfo currentLogin);
    //用户自己的
    PageList<SearchMasterMsg> queryUserMsg(SearchMasterMsgQuery query, Logininfo currentLogin);

    void handle(Pet pet, Logininfo currentLogin);
}
